<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
 
<html>
  <head>
   <link rel="stylesheet" href="<s:url value="/resources"/>/css/innerstyle.css" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/cupertino/jquery-ui.custom.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.multiselect.css" />
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-ui.custom.min.js"></script>  
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/grid.locale-cn.js"></script> 
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.jqGrid.min.js"></script>
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
	<style type="text/css">

#tab{
	width:99%;
	border:#F4F4F4 solid 4px;
	padding:0 2px 0 2px;
	margin:0;
	float:left;
}


#tab h1{
	display:block;
	width:95%;
	height:55px;	
	float:left;
	text-align: center;
	margin:0px;
}
#tab h1 span{
	width:95%;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#327C8E;
	background-color:#fff;
	display:block;
}
#tab h2{
	display:block;
	width:10%;
	height:55px;	
	float:left;
	padding-top:0;
}
#tab h2 span{
	width:250px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#000;
	background-color:#fff;
	display:block;
}

#tab h3{
	display:block;
	width:10%;
	height:55px;	
	float:left;
	padding-top:0;
}
#tab h3 span{
	width:300px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#000;
	background-color:#fff;
	display:block;
}
#tab h4{
	display:block;
	width:95%;	
	float:left;
	text-align: center;
	margin:0px;
}

.content1
{
	margin:0px;	
	padding:0px;
	width:100%;	
	font-size:12px;	
}
.content1 td
{    
    height:16px;
	line-height:16px;
	text-align:left;
	border-top-style:none;
	border-left-style:none;
	border-right-style:none;
	border-bottom-style:none;
}
label{ display:block; }
fieldset { padding:0; border:0; margin-top:0; }
</style>
<style media=print type="text/css">   
.noprint{visibility:hidden}   
</style>
</head>
<script type='text/javascript'>
  
  
  	$(function (){
        $("#but2").button();
        $("#but3").button();
  	     buttonclick("#but2","${bdzt}");
  	     //checkJg();
	});	

	
	function buttonclick(but,str){
	$(but).click((function (){
  	 var url= "<s:url value="/"/>/gpjy/bdthcanel";
			$.post(url, {
				bdbh : $("#bdbh").val(),
				bdzt : str
			}, function(data) {		
				var json = eval('(' + data + ')');
				if (json.result == "1") {
					alert("操作成功");
					window.returnValue = 1;
					window.close();
				} else {
					alert("操作失败");
				}

			});
		}));
	}
</script>
<body>
	<div id="tab">
		<h1>挂 牌 报 单</h1>
		<form name="form2" id="form2">
			<table id="list_search" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="120">出卖人（销方）:</td>
					<td width="30%">${bdxx.baodrdwmc}</td>
					<td width="120">煤炭用途:</td>
					<td width="20%">${bdxx.meitytmc}</td>
					<td width="150">交收方式:</td>
					<td >${bdxx.jiaosfsmc}</td>
				</tr>

				<tr>
					<td>买受人（购方）:</td>
					<td></td>
					<td>价格类型:</td>
					<td>${bdxx.jiaglxmc}</td>
					<td>交收地点:</td>
					<td>${bdxx.jiaosdd}</td>
				</tr>

				<tr>
					<td>发货单位:</td>
					<td>${bdxx.fahdwmc}</td>
					<td>隶属行业:</td>
					<td>${bdxx.lismc}</td>
					<td>产地:</td>
					<td>${bdxx.yuancd}</td>
				</tr>

				<tr>
					<td colspan="6" style="padding-top:5px;">一、收货人名称、品种规格、数量、单价</td>
				</tr>
				<tr>
					<td colspan="6" style="padding:1px;">
						<table id="changdi" align="center" cellpadding="0" cellspacing="0" border="1"
							class="content_gridview" >
							<thead>
								<tr>
									<th rowspan="3">收货人名称</th>
									<th rowspan="3">发站</th>
									<th rowspan="3">到站</th>
									<th rowspan="3">品种规格</th>
									<th rowspan="3">质量指标</th>
									<th rowspan="3">价格<br/>(元/吨)</th>
									<th colspan="13">交（提）货时间、煤量（吨）</th>

								</tr>
								<tr>
									<th rowspan="2">全年合计</th>
									<th colspan="3">一季度</th>
									<th colspan="3">二季度</th>
									<th colspan="3">三季度</th>
									<th colspan="3">四季度</th>
								</tr>
								<tr>
									<th>1</th>
									<th>2</th>
									<th>3</th>
									<th>4</th>
									<th>5</th>
									<th>6</th>
									<th>7</th>
									<th>8</th>
									<th>9</th>
									<th>10</th>
									<th>11</th>
									<th>12</th>
								</tr>
							</thead>
							<tbody>
							
									<tr>
										<td></td>
										
										<td>${bdxx.faz}</td>
										<td></td>
										<td>${bdxx.pinzgg}</td>
										<td>${bdxx.zhilzb}</td>
										<td>${bdxx.danj}</td>
										<td>${bdxx.shul}</td>
										<td>${bdxx.gml1}</td>
										<td>${bdxx.gml2}</td>
										<td>${bdxx.gml3}</td>
										<td>${bdxx.gml4}</td>
										<td>${bdxx.gml5}</td>
										<td>${bdxx.gml6}</td>
										<td>${bdxx.gml7}</td>
										<td>${bdxx.gml8}</td>
										<td>${bdxx.gml9}</td>
										<td>${bdxx.gml10}</td>
										<td>${bdxx.gml11}</td>
										<td>${bdxx.gml12}</td>
									</tr>
								
							</tbody>
						</table></td>
				</tr>
					<tr>
					<td>最少交易方式:</td>
					<td>
					<c:if test="bdxx.zuixjyfs=='1'">
					最少交易车数
					</c:if>
						 <c:if test="bdxx.zuixjyfs=='0'">
						 最少交易量
						 </c:if></td>
					<c:if test="bdxx.zuixjyfs==1">
					<td id="zxjs">最少节数:
					</td>
					<td id="zxjs1">${bd.zuixjycj} 
					</td>
					</c:if>
					<td id="zxjyl">最少交易量:
					</td>
					<td  id="mjds">每节吨数:
					</td>
					<td id="mjds1">
						${bd.zuixjyl}
					</td>
				</tr>
				<tr>
					<td>流向:</td>
					<td>${bd.liux}
					</td>
					<td>专用线:
					</td>
					<td>${bd.zhuanyx}
					</td>
					<td><span id="mgz"></span>
					</td>
					<td>
						
					</td>
				</tr>
				<tr style="line-height:26px;">
					<td colspan="6">
						<table id="djtk" cellpadding="0" cellspacing="0"  border rules=rows frame=below >
							<c:forEach var="tk" items="${mrhttk}">
								<tr>
									<td width="400px">${tk.xh}${tk.biaot}</td>
									<td><textarea cols="142" rows="2" class="textarea" name="neir">${tk.neir}</textarea>
									</td>
								</tr>
							</c:forEach>
						</table></td>
				</tr>
				<tr>
					<td colspan="6">
						<table cellpadding="0" cellspacing="0" style="width:100%"
							class="content_gridview" border="1">
							<thead>
								<tr>
									<th colspan="2">出卖人</th>
									<th colspan="2">买受人</th>									
								</tr>
							</thead>
							<tbody>
								<tr>
									<td style="width:20%"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人名称(章)：</td>
												<td>${bdxx.baodrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.baodrzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.baodrfddbr}
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.baodrwtdlr}
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.baodrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.baodrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.baodryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.baodrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.baodryhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.baodrnsrdjzh}</td>
											</tr>

										</table>
										</td>
									<td style="width:20%"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td>${bdxx.baodjsrmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.baodjsrzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.baodjsrfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.baodjsrwtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.baodjsrdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.baodjsrcz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.baodjsryzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.baodjsrkhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.baodjsryhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.baodjsrnsrdjzh}</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人名称(章)：</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>&nbsp;
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>&nbsp;
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>&nbsp;
												</td>
											</tr>

										</table>
									</td>
									<td><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人结算单位名称(章)：</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>&nbsp;</td>
											</tr>

										</table>
									</td>									
								</tr>
							</tbody>
						</table></td>

				</tr>
				<tr>					
					<td colspan="6" align="right"><font size="2">有效期：${bdxx.kaissj} 至 ${bdxx.jiessj}</font>
					</td>
				</tr>
				<tr>
					<td colspan="6" align="center">					
					    <input type="hidden" value="${bdxx.baodbm}" id="bdbh">				    
						<input id="but2" type="button" name="" value="撤销" /> &nbsp;&nbsp;&nbsp;
						<input id="but3" type="button" name="" value="关闭" onclick="window.returnValue=1;window.close();" />
					</td>
				</tr>

			</table>
		</form>
	</div>
	<div id="dialog-confirm" title="是否确定？"></div>
</body>
</html>
